/*
 * @Author: 李天惊 uf_lee@163.com
 * @Date: 2022-08-16 15:03:11
 * @LastEditors: 李天惊 uf_lee@163.com
 * @LastEditTime: 2023-01-02 16:10:16
 * @FilePath: \grazlink20\uc_sys\src\api\fa\vaccineInject\index.ts
 * Copyright (c) 2022 by 李天惊 uf_lee@163.com, All Rights Reserved.
 * 接口
 */
import { useAxios } from '@/hooks/web/useAxios'
const request = useAxios()
import { useCache } from '@/hooks/web/useCache'
const { wsCache } = useCache()

// 列表
export const adminFaVaccineInjectOrderListApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'adminFaVaccineInjectOrderList',
      data: data
    }
  })
}

// 新增
export const adminFaVaccineInjectOrderAddApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'adminFaVaccineInjectOrderAdd',
      data: data
    }
  })
}

// 查看
export const adminFaVaccineInjectOrderSeeApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'adminFaVaccineInjectOrderSee',
      data: data
    }
  })
}

// 删除
export const adminFaVaccineInjectOrderDelApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'adminFaVaccineInjectOrderDel',
      data: data
    }
  })
}

// 修改
export const adminFaVaccineInjectOrderEditApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'adminFaVaccineInjectOrderEdit',
      data: data
    }
  })
}

// 明细列表
export const adminFaVaccineInjectOrderDetailedListApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'adminFaVaccineInjectOrderDetailedList',
      data: data
    }
  })
}
